package com.ruochen.common.base;

import java.io.Serializable;

/**
 * @描述: 基本返回结果类
 * @作者: 宋俊 SongJun
 * @时间: 2016/10/11 15:48
 * @版权: 云腾科技
 * @官网: http://www.gzytkj.net/
 */
public class BaseModel<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private int code;
    private int count;
	private String msg;
	private T data;

	public BaseModel() {
	}

	public BaseModel(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public BaseModel(int code, String msg, T data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
